package com.example.userlogincenter.userCenter.util;

public class aliyunUtils {

    /**
     * 使用AK&SK初始化账号Client
     * @param accessKeyId
     * @param accessKeySecret
     * @return Client
     * @throws Exception
     */
    public static com.aliyun.dysmsapi20170525.Client createClient() throws Exception {
        com.aliyun.teaopenapi.models.Config config = new com.aliyun.teaopenapi.models.Config()
                // 必填，您的 AccessKey ID
                .setAccessKeyId("LTAI5tB7GDKsmFyWKDAQGotv")
                // 必填，您的 AccessKey Secret
                .setAccessKeySecret("vjqvRGX16j9QkW7Zx7JXTqHIgd1yzw");
        // 访问的域名
        config.endpoint = "dysmsapi.aliyuncs.com";
        return new com.aliyun.dysmsapi20170525.Client(config);
    }



}
